package com.picolov;

import java.util.Map;

public class ContentChecker {
	
	public static final int MAP_LENGTH 			= 	0;
	public static final int MAP_KEY 			= 	1;
	public static final int MAP_CONTENT			=	2;
	
	public static boolean isEquals(Map<String, Object> map1, Map<String, Object> map2, int option) {
		boolean result = false;
		if (option == MAP_LENGTH)
			result = map1.size() == map2.size();
		if (option == MAP_KEY)
			result = map1.keySet().equals(map2.keySet());
		if (option == MAP_CONTENT)
			result = map1.entrySet().equals(map2.entrySet());
		return result;
	}
}
